import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//碳排放量报表
export const accountingReportgetEmissionDataReport = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/accountingEmissionData/getEmissionDataReport`, {
    data
  });
};

//新增碳排放报告
export const emissionReportsave = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/emissionReport/save`, {
    data
  });
};

//查询碳排放报告
export const emissionReportquery = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/emissionReport/query`, {
    data
  });
};

//预览下载接口
export const emissionReportdownload = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/emissionReport/download`, {
    data
  });
};

//预览下载接口
export const accountingEmissionDatadownloadEmissionDataReport = (data?: object) => {
  return http.request<ResultTable>("post", `//energy/accountingEmissionData/downloadEmissionDataReport`, {
    data
  });
};
